package com.yincheng.oes.business.exam.base.entity;

import java.text.DecimalFormat;
import java.util.List;

/**
 * 空白试卷题目明细
 *
 * @author Administrator
 *
 */
public class PaperDetailUnDo {

    private Integer quesNum;// 排序

    private String quesType;// 题目类型

    private String sharedStem;// A2题型共题干

    private int sharedCount;// A2题型分题总数

    private String realQuestionYear;// 所属真题年代

    private String realQuestionNo;// 所属真题编号

    private List<PaperQuesDetail> quesDetails;// 题目明细集合

    public Integer getQuesNum() {
        return quesNum;
    }

    public void setQuesNum(Integer quesNum) {
        this.quesNum = quesNum;
    }

    public String getQuesType() {
        return quesType;
    }

    public void setQuesType(String quesType) {
        this.quesType = quesType;
    }

    public List<PaperQuesDetail> getQuesDetails() {
        return quesDetails;
    }

    public void setQuesDetails(List<PaperQuesDetail> quesDetails) {
        this.quesDetails = quesDetails;
    }

    public String getSharedStem() {
        return sharedStem;
    }

    public void setSharedStem(String sharedStem) {
        this.sharedStem = sharedStem;
    }

    public int getSharedCount() {
        return sharedCount;
    }

    public void setSharedCount(int sharedCount) {
        this.sharedCount = sharedCount;
    }

    public String getRealQuestionYear() {
        return realQuestionYear;
    }

    public void setRealQuestionYear(String realQuestionYear) {
        this.realQuestionYear = realQuestionYear;
    }

    public String getRealQuestionNo() {
        if (realQuestionYear == null) {
            return null;
        }
        DecimalFormat df = new DecimalFormat("000");
        return df.format(Integer.parseInt(realQuestionNo));
    }

    public void setRealQuestionNo(String realQuestionNo) {
        this.realQuestionNo = realQuestionNo;
    }
}
